package com.ruiysoft.controller.statement.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * StatementAuditConditionVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-01-13T17:59:57.541+08:00")

public class StatementAuditConditionVo   {
  @JsonProperty("ids")
  @Valid
  private List<Long> ids = null;

  @JsonProperty("type")
  private Integer type = null;

  @JsonProperty("info")
  private String info = null;

  public StatementAuditConditionVo ids(List<Long> ids) {
    this.ids = ids;
    return this;
  }

  public StatementAuditConditionVo addIdsItem(Long idsItem) {
    if (this.ids == null) {
      this.ids = new ArrayList<Long>();
    }
    this.ids.add(idsItem);
    return this;
  }

  /**
   * Get ids
   * @return ids
  **/
  @ApiModelProperty(value = "")


  public List<Long> getIds() {
    return ids;
  }

  public void setIds(List<Long> ids) {
    this.ids = ids;
  }

  public StatementAuditConditionVo type(Integer type) {
    this.type = type;
    return this;
  }

  /**
   * 审核状态（1，未审核，2，审核通过，3，不通过）
   * @return type
  **/
  @ApiModelProperty(example = "1", value = "审核状态（1，未审核，2，审核通过，3，不通过）")


  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public StatementAuditConditionVo info(String info) {
    this.info = info;
    return this;
  }

  /**
   * 审核意见
   * @return info
  **/
  @ApiModelProperty(example = "1", value = "审核意见")


  public String getInfo() {
    return info;
  }

  public void setInfo(String info) {
    this.info = info;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatementAuditConditionVo statementAuditConditionVo = (StatementAuditConditionVo) o;
    return Objects.equals(this.ids, statementAuditConditionVo.ids) &&
        Objects.equals(this.type, statementAuditConditionVo.type) &&
        Objects.equals(this.info, statementAuditConditionVo.info);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ids, type, info);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatementAuditConditionVo {\n");

    sb.append("    ids: ").append(toIndentedString(ids)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    info: ").append(toIndentedString(info)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

